<template>
  <div class="beijing">
    <div class="main">
      <!-- 左边两个盒子 -->
      <!-- 商品图片展示 -->
      <div class="Commodity-information">
        <ul class="Small-picture">
          <li class="lichart">
            <img
              src="https://ooo.0o0.ooo/2018/07/13/5b48ac7766d98.png"
              alt=""
              style="width: 54px; height: 54px"
            />
          </li>
        </ul>
        <!-- 图片 -->
        <div class="chart">
          <img
            src="https://ooo.0o0.ooo/2018/07/13/5b48ac9135c5f.png"
            alt=""
            style="width: 440px; height: 449px"
          />
        </div>
      </div>
      <!-- 右边 -->
      <!-- 商品介绍 -->
      <div class="Product-picture">
        <div class="custom-title">
          <h4 class="title">
            <!-- {{productData.productName}} -->
          </h4>

          <div class="baoqilai">
            <span style="font-size: 14px; color: #bdbdbd"
              >仅此为支付测试商品 不会发货</span
            >
            <span style="font-size: 24px; color: #d44d44">￥1.00</span>
          </div>
        </div>
        <!-- 点击购买的数量 -->
        <div class="quantity">
          <span class="asss">数量</span>
          <div class="buttonyangshi">
            <el-button
              icon="el-icon-minus"
              circle
              size="mini"
              @click="count--"
            ></el-button>
            <input type="text" class="kuang" v-model="count" />
            <el-button
              icon="el-icon-plus"
              circle
              size="mini"
              @click="count++"
            ></el-button>
          </div>
        </div>
        <!-- 购物车按钮和购买按钮 -->
        <div class="gouwuchegoumai">
          <input type="text" class="qweqw" value="加入购物车" />
          <input
            type="text"
            class="qweqw"
            value="立即购买"
            style="
              margin-left: 10px;
              background-color: #f9f9f9;
              color: #646464;
              border: 1px solid #e1e1e1;
            "
          />
        </div>
      </div>
    </div>
    <!-- 产品信息 -->
    <!-- <div class="Product-information">
      <div class="Product-information-word"><h2 class="canp">产品信息</h2></div>
      <div class="biejinger">
        <img
          src="https://img30.360buyimg.com/popWaterMark/jfs/t7843/137/3005340945/124833/dc7c71f2/59b8ccd1N2bffd055.jpg"
          alt=""
        />
      </div>
    </div> -->
  </div>
</template>

<script>
// import ImageList from './ImageList/ImageList.vue'
import { mapState, mapActions } from 'vuex'
export default {
  name: 'HelloWorld',
  data() {
    return {
      count: 1,
      index: 0,
      // productMsg:{},
      // small:[],
      // big:'',
      // product:{
      //   salePrice:0
      // },
      // productNum:1,
      // userId:''
    }
  },
  props: ['id'],
  components: {
    // ImageList
  },
  computed: {
    //  ...mapGetters('detail',['categoryView','skuInfo','spuSaleAttrList']),
    ...mapState('detail', ['productData']),
  },

  methods: {
    ...mapActions('detail', ['getproductDet']),
    // ...mapMutations('detail',['PROD_UCTD_ET']),
  },
  mounted() {
    // this.getproductDet()
  },
}
</script>

<style scoped lang="less">
.beijing {
  background: #ededed;
}
li {
  list-style: none;
}
.main {
  clear: both;
  width: 1220px;
  min-height: 600px;
  padding: 0 0 25px;
  margin: 0 auto;
  border: 1px solid #dcdcdc;
  display: flex;
  border-radius: 8px;
  align-items: center;
  margin: 20px auto 20px auto;
  background: #fff;
}
.Commodity-information {
  /* width: 450px;
  height: 440px; */
  padding: 60px;
  margin: 20px 0;
  /* border:1px solid #dcdcdc; */
  display: flex;
}
.Small-picture {
  width: 80px;
  height: 440px;
  /* border:1px solid #dcdcdc; */
  display: table;
  text-align: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.lichart {
  width: 54px;
  height: 54px;
  border: 1px solid #f0f0f0;
  padding: 10px;
  margin-block: 17px;
  margin-top: 0;
  border-radius: 8px;
}

.Product-picture {
  width: 450px;
  height: 440px;
  /* border:1px solid #dcdcdc; */
}
.custom-title {
  width: 432px;
  height: 66px;
  padding: 8px 8px 18px 10px;
}
.title {
  margin: 0px;
  height: 30px;
  font-size: 24px;
  margin: 0 0 13px 0;
  font-weight: 400;
}
.baoqilai {
  display: flex;
  justify-content: space-between;
  /* 居中 */
  align-items: center;
}
.quantity {
  width: 440px;
  height: 41px;
  border-top: 1px solid #ebebeb;
  padding: 29px 0 8px 10px;
  display: flex;
  align-items: center;
}
.asss {
  font-size: 14px;
  color: #bdbdbd;
  padding-right: 20px;
  line-height: 36px;
}
/* .circular{
  width: 34px;
  height: 37px; */
/* border-radius:50% ; */
/* border-radius:50%;
  border:1px solid #dcdcdc; */

/* } */
.kuang {
  width: 36px;
  height: 18px;
  border: none;
  align-items: center;
  text-align: center;
}
.qweqw {
  background-color: #5c81e3;
  border: 1px solid #5c81e3;
  font-size: 12px;
  color: #fff;
  border-radius: 4px;
  width: 143px;
  height: 48px;
  text-align: center;
}
.gouwuchegoumai {
  width: 440px;
  height: 50px;
  padding-top: 30px;
  padding-left: 10px;
  border-top: 1px solid #ebebeb;
}
.Product-information {
  width: 1220px;
  text-align: center;
  margin: auto;
}
.Product-information-word {
  height: 60px;
  border-bottom: 1px solid #d4d4d4;
  box-shadow: 0 1px 6px rgb(0 0 0 /6%);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(#fbfbfb, #ececec);
  /* line-height: 60px; */
  /* font-size: 18px; */
  display: flex;
  padding-left: 24px;
}
.canp {
  font-size: 18px;
  font-weight: 400;
  color: #626262;
  display: inline-block;
}
.biejinger {
  background: #fff;
  padding: 0 0 25px 0;
}
.buttonyangshi {
  width: 104px;
  height: 36px;
  display: flex;
  align-items: center;
  text-align: center;
}
</style>
